package org.edu.modules.sbzc.floor.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-检查记录表
 */
@TableName("ve_sbzc_jzw_inspect")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="检查记录表对象", description="ve_sbzc_jzw_inspect")
public class VeSbzcJzwInspect extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "建筑物id")
    private Integer jzwId;

    @TableField
    @ApiModelProperty(value = "楼层id")
    private Integer floorId;

    @TableField
    @ApiModelProperty(value = "房间id")
    private Integer roomId;

    @TableField
    @ApiModelProperty(value = "检查类别")
    private Integer inspectTypeId;

    @TableField
    @ApiModelProperty(value = "检查时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date inspectDate;

    @TableField
    @ApiModelProperty(value = "检查人")
    @Length(max = 32)
    private String inspectUser;

    @TableField
    @ApiModelProperty(value = "检查人")
    @Length(max = 50)
    private String inspectUserName;

    @TableField
    @ApiModelProperty(value = "检查情况")
    @Length(max = 200)
    private String description;

    @TableField
    @ApiModelProperty(value = "备注")
    @Length(max = 500)
    private String remark;
}
